<?php

class Application_Form_Addclientsws extends Zend_Form
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
     $this->setName("FormulaireAjoutclient");
    	 
    	
     $nomclient = new Zend_Form_Element_Text('nomclient');
     $nomclient->setLabel('Nom client')
     ->setRequired(true)
     ->addFilter('StripTags')
     ->addFilter('StringTrim')
     ->addValidator('NotEmpty')
     ->setAttrib('class','validate[required] text-input');
      
    	
    	
    	$nomclient = new Zend_Form_Element_Text('nomclient');
    	$nomclient->setLabel('Nom client')
    	->setRequired(true)
    	->addFilter('StripTags')
    	->addFilter('StringTrim')
    	->addValidator('NotEmpty')
    	->setAttrib('class','validate[required] text-input');
    	 
    	
    	$login = new Zend_Form_Element_Text('login');
    	$login->setLabel('Login')
    	->setRequired(true)
    	->addFilter('StripTags')
    	->addFilter('StringTrim')
    	->addValidator('NotEmpty')
    	->setAttrib('class','validate[required] text-input');
    	 
    	
    	$motdepasse = new Zend_Form_Element_Password('motdepasse');
    	$motdepasse->setLabel('Mot de passe')->setRequired(true)
    	->addFilter('StripTags')
    	->addFilter('StringTrim')
    	->addValidator('NotEmpty')
    	->setAttrib('class','validate[required] text-input');
    	
    	 
    	
    	$url = $this->CreateElement('textarea', 'wsurl');
    	$url->setAttrib('rows', '7');
    	$url->setAttrib('cols', '35');
    	$url->setLabel('Web service URL');
    	
   
    	$prefixe = new Zend_Form_Element_Text('prefixe');
    	$prefixe->setLabel('Prefixe');
    	 
    	
    	$description = $this->CreateElement('textarea', 'description');
    	$description->setAttrib('rows', '7');
    	$description->setAttrib('cols', '35');
    	$description->setLabel('Description');
    	
    	$wsdl = $this->CreateElement('textarea', 'wsdl');
    	$wsdl->setAttrib('rows', '7');
    	$wsdl->setAttrib('cols', '35');
    	$wsdl->setLabel('WSDL');
    	
    	$URLPLATEFORME = $this->CreateElement('textarea', 'URLPLATEFORME');
    	$URLPLATEFORME->setAttrib('rows', '7');
    	$URLPLATEFORME->setAttrib('cols', '35');
    	$URLPLATEFORME->setLabel('Url de la plateforme');
    	
    	
    	
    	$valider = new Zend_Form_Element_Submit("submit");
    	$valider->setLabel("Ajouter");
    	
    	
    	$this->addElements(array($nomclient,$login,$motdepasse,$url,$description,$wsdl,$URLPLATEFORME,$prefixe,$valider));
    	$this->setDecorators( array( array('ViewScript', array('viewScript' => 'protypeform.phtml'))));
    	
    	
    }


}

